<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/jstl/c" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/tld/jstl/fn" prefix="fn" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
  <head>
    <html:base />
    
    <title>直播管理</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
.vb_wid {width:100%; margin: 0 auto; border-top:1px #FDB18D solid; background:#F5F5F5; color:#FE6500; text-indent:20px; line-height:25px; font-size:12px;}
.fb_search {width:100%; margin:0 auto; margin-top:20px; border:1px #FFCD7F solid;}
.fb_search h1 {background:#FFEFBB; margin:0px; padding:0px; line-height:28px; text-indent:10px; font-size:14px;}
.fb_s_a1 {margin:5px; font-size:14px;}
.fb_s_a2 {font-size:12px; line-height:22px; color:#999; margin-left:5px;}
.fb_ddd {width:100%; margin:0 auto; margin-top:10px; border-top:3px #FFCC00 solid; background:url(images/pen.gif) no-repeat 5px 3px; height:40px; text-indent:50px; line-height:40px; color:#464646; font-size:12px;}
.fb_nr {width:100%; margin:0 auto; margin-top:10px; line-height:22px; font-size:12px; color:#464646}
.fb_nr span {color:#FF0000;}
.fb_nr select {color:464646; font-size:12px;}
.fb_nr Div {margin-top:10px; height:30px;}
.fb_nr Div input {font-size:12px; line-height:18px;}
.inputtttt {border:1px #DEA303 solid; height:20px; color:#464646; font-size:12px; background:url(images/bottom_bg.jpg) repeat-x left top;}
.lb {background:#FFCD7F; color:#464646; font-weight:bold; text-align:center; height:30px; line-height:30px;}
.lb1 {border-bottom:1px #000000 dashed; height:28px;}
.lb1 td {border-bottom:1px #ccc dashed; background:#eefefe}
.fy1 {width:90%; margin:0 auto; margin-top:8px; background:#F8F8F8; font-size:12px; height:30px; line-height:28px; text-indent:10px;}
.fy1 span {color:#FF0000; font-weight:bold;}
.fy1 a {color:#464646; text-decoration:none;}
.fy1 a:hover {color:#FF0000; text-decoration:underline;}
</style>
	
	
	<script  type="text/javascript"  language="javascript">
   
  var pageObj;
   function topage(pageObj)
   {
      
     var formObj=document.getElementById('searchForm123');
     var page=document.getElementById('toPage').value
     
      var toPageLink=document.getElementById('toPageLinkpage').value;

     
     
      if(page!=null&&page!='')
     {

       if(!isNotNumReg(page))
       {
         var link=toPageLink+'&page='+page;
         window.location=encodeURI(link);
       }
        else
       {
         alert('您输入的页码只能是数字!');
         return false;
       }
     }
     else
     {
        alert("页码不能为空!");
      }
      
      
   }
   
   function isNotNumReg(s){
				var temp="0123456789";
				for( j=0;j<s.length; j++ ) 
				{	
					var ch=s.charAt(j);
					if(temp.indexOf(ch) == -1)
					{
						return true;
					}
				}
				return false;
			}
</script>
	<script language="JavaScript">
<!--//

		
function selectAll(choice) {
   if(document.forms['theForm1'].checkboxparam.length!=null)
   {
	   for (var i=0;i<document.forms['theForm1'].checkboxparam.length;i++) 
	   {
			var e=document.forms['theForm1'].checkboxparam[i];
			if(choice==1)e.checked=true;
			if(choice==2)e.checked=(e.checked?false:true);
			if(choice==3)e.checked=false;
		}
   }
   
   //单个的处理
   else
   {
     var e=document.forms['theForm1'].checkboxparam;
     if(choice==1)e.checked=true;
			if(choice==2)e.checked=(e.checked?false:true);
			if(choice==3)e.checked=false;
     
   }
	
}

function  checkboxIsSelected(){

   var flag = 0;
   if(document.forms['theForm1'].checkboxparam.length!=null)
   {
        for (var i=0;i<document.forms['theForm1'].checkboxparam.length;i++) 
		   {
		        var e=document.forms['theForm1'].checkboxparam[i];
		        if(e.checked){
					flag = 1;
				}
		   }
		   if(flag==1)
		   {
		     return true;
		   }else{
		        window.alert('至少选择一项!');
		        return false;
		   }
   }
   
   //只选择了一项
   else if(document.forms['theForm1'].checkboxparam!=null)
   {
       var e=document.forms['theForm1'].checkboxparam;
        if(e.checked)
        {
					flag = 1;
	    }
	    
	      if(flag==1)
		   {
		      return true
           }else{
		        window.alert('至少选择一项!');
		        return false;
		   }
   }
   		        window.alert('至少选择一项!');
		        return false;
}
//-->
</script>
<script type='text/javascript' src='/dwr/interface/homeSiteDWRServ.js'></script>
<script type='text/javascript' src='/dwr/engine.js'></script>
<script type='text/javascript' src='/dwr/util.js'></script>
<script type="text/javascript">
          function getDirectSeedNameMap(obj){
		     homeSiteDWRServ.loadDirectSeedNameMapByInputtime(obj.value,getAllDirectSeedNameMap);
	 	}
	    function getAllDirectSeedNameMap(data){
	    
	  	  var directSeedNameid = document.getElementById("directSeedNameid");
	      DWRUtil.removeAllOptions(directSeedNameid);
	      DWRUtil.addOptions(directSeedNameid, {'-2':'选择直播名'}); 
	      DWRUtil.addOptions(directSeedNameid, data); 
	    }

          function getDirectSeedClassMap(obj){
		     homeSiteDWRServ.loadByNameIdMap(obj.value,getAllgetDirectSeedClassMap);
	 	}
	    function getAllgetDirectSeedClassMap(data){
	    
	  	  var magazineClassid = document.getElementById("directSeedClassid");
	      DWRUtil.removeAllOptions(magazineClassid);
	      DWRUtil.addOptions(magazineClassid, {'-2':'请选择直播类别'}); 
	      DWRUtil.addOptions(magazineClassid, data); 
	    }
	    
	    

</script>
<script type="text/javascript">
 
 function search(){
 var url='/admin/directSeed.do?method=list';
 var title= document.getElementById("title").value;
 var shanchu= document.getElementById("shanchu").value;
 var titleStr= document.getElementById("titleStr").value;
 var directSeedNameid= document.getElementById("directSeedNameid").value;
 var directSeedClassid= document.getElementById("directSeedClassid").value;
 var year= document.getElementById("year").value;
 var keyword= document.getElementById("keyword").value;
 
  var param2;
 if(titleStr==-2){
     param2='';
 }
 if(titleStr==1){
 
 param2='&title='+title;
 
 }
 if(titleStr==2){
 
   param2='&content='+title;
 
 }
 window.location=encodeURI(url+param2+'&shanchu='+shanchu+'&directSeedNameid='+directSeedNameid+'&directSeedClassid='+directSeedClassid+'&titleStr='+titleStr+'&year='+year+'&keyword='+keyword);
 }
</script>
<script type="text/javascript">

function  checkboxIsSelected2(dovalue){

   var param = '';
   var flag = 0;
   if(document.forms['theForm1'].checkboxparam.length!=null)
   {
        for (var i=0;i<document.forms['theForm1'].checkboxparam.length;i++) 
		   {
		        var e=document.forms['theForm1'].checkboxparam[i];
		        if(e.checked){
					param += '&checkboxparam=' + e.value;
					flag = 1;
				}
		   }
		   if(flag==1)
		   {
		      var toPageLink=document.getElementById('toPageLinkstr').value;
		   
		        //推荐
		        if(dovalue==1)
		        window.location=encodeURI(toPageLink+'&doit=tuijian' + param);
		        //取消推荐
		        if(dovalue==2)
		        window.location =encodeURI(toPageLink+'&doit=deltuijian' + param);
		        //审核
		        if(dovalue==3)
		        window.location=encodeURI(toPageLink+'&doit=audite' + param);
		        //取消审核
		        if(dovalue==4)
		        window.location =encodeURI(toPageLink+'&doit=delaudite' + param);
		        //删除
		        if(dovalue==5)
		        window.location=encodeURI(toPageLink+'&doit=isDel' + param);
		        //取消删除
		        if(dovalue==6)
		        window.location =encodeURI(toPageLink+'&doit=delisDel' + param);
		        //彻底删除
		        if(dovalue==7)
		        window.location =encodeURI(toPageLink+'&doit=readlyisDel' + param);
		        //头条
		        if(dovalue==8)
		        window.location =encodeURI(toPageLink+'&doit=toptitle' + param);
		        //取消头条
		        if(dovalue==9)
		        window.location =encodeURI(toPageLink+'&doit=deltoptitle' + param);
		   }else{
		        window.alert('至少选择一项!');
		        return false;
		   }
   }
   
   //只选择了一项
   else if(document.forms['theForm1'].checkboxparam!=null)
   {
       var e=document.forms['theForm1'].checkboxparam;
        if(e.checked)
        {
					param += '&checkboxparam=' + e.value;
					flag = 1;
	    }
	    
	      if(flag==1)
		   {
		   
		       var toPageLink=document.getElementById('toPageLinkstr').value;
		   
		        //推荐
		        if(dovalue==1)
		        window.location = encodeURI(toPageLink+'&doit=tuijian' + param);
		        //取消推荐
		        if(dovalue==2)
		        window.location = encodeURI(toPageLink+'&doit=deltuijian' + param);
		        //审核
		        if(dovalue==3)
		        window.location=encodeURI(toPageLink+'&doit=audite' + param);
		        //取消审核
		        if(dovalue==4)
		        window.location =encodeURI(toPageLink+'&doit=delaudite' + param);
		        
		         //删除
		        if(dovalue==5)
		        window.location=encodeURI(toPageLink+'&doit=isDel' + param);
		        //取消删除
		        if(dovalue==6)
		        window.location =encodeURI(toPageLink+'&doit=delisDel' + param);
		        
		        //彻底删除
		        if(dovalue==7)
		        window.location =encodeURI(toPageLink+'&doit=readlyisDel' + param);
		        
		       //头条
		        if(dovalue==8)
		        window.location =encodeURI(toPageLink+'&doit=toptitle' + param);
		        //取消头条
		        if(dovalue==9)
		        window.location =encodeURI(toPageLink+'&doit=deltoptitle' + param);

           }else{
		        window.alert('至少选择一项!');
		        return false;
		   }
   }
}


function changeSearch(obj){
var url='/admin/directSeed.do?method=list';
var directSeedNameid=obj.value;
window.location=encodeURI(url+'&directSeedNameid='+directSeedNameid);
}

</script>
  </head>
  
  <body>
  <logic:present name="del">
  <bean:write name="del" filter="false"/>
  </logic:present>
  <logic:present name="update">
  <bean:write name="update" filter="false"/>
  </logic:present>
  <logic:present name="succe">
  <bean:write name="succe" filter="false"/>
  </logic:present>
   <div class="vb_wid"><c:if test="${param['shanchu'] !=  '1'}">【直播管理】 </c:if><c:if test="${param['shanchu']=='1'}">【直播回收站】</c:if></div>
   
   <div class="fb_search">
   <h1>直播搜索</h1>
   <div class="fb_s_a1">搜索内容：
    <html:form action="/admin/directSeed.do?method=list" method="post">
     <label>
       <select name="titleStr" size="1" >
       <option value="-2" <c:if test="${param['titleStr']==-2}">selected</c:if>>--查询类型--</option>
       <option value="1" <c:if test="${param['titleStr']==1}">selected</c:if>>--新闻标题--</option>
       <option value="2" <c:if test="${param['titleStr']==2}">selected</c:if>>--新闻内容--</option>
     </select>-<input type="text" name="title" size="5" value="${title}${content}"/>
     关键字<input type="text" name="keyword" size="5" value="${keyword}"/>
    <br/> 
     <select name="year" size="1" onchange="getDirectSeedNameMap(this);">
     <option value="-2" <c:if test="${param['year']==-2}">selected</c:if>>--选择直播年份--</option>
     <option value="2005" <c:if test="${param['year']==2005}">selected</c:if>>2005年</option>
     <option value="2006" <c:if test="${param['year']==2006}">selected</c:if>>2006年</option>
     <option value="2007" <c:if test="${param['year']==2007}">selected</c:if>>2007年</option>
     <option value="2008" <c:if test="${param['year']==2008}">selected</c:if>>2008年</option>
     <option value="2009" <c:if test="${param['year']==2009}">selected</c:if>>2009年</option>
     <option value="2010" <c:if test="${param['year']==2010}">selected</c:if>>2010年</option>
     
     </select>
    <html:select property="directSeedNameid" onchange="getDirectSeedClassMap(this);">
    <html:option value="-2" >选择直播名</html:option>
      <c:if test="${directSeedNameMap!=null}">
	      <html:optionsCollection name="directSeedNameMap" label="value" value="key"/>
	    </c:if>
    </html:select>-
    <html:select property="directSeedClassid" value="${param['directSeedClassid']}">
    <html:option value="-2" >选择直播类</html:option>
       <c:if test="${directSeedClassMap!=null}">
	      <html:optionsCollection name="directSeedClassMap" label="value" value="key"/>
	    </c:if>
    
     </html:select>
     回收站
    <select name="shanchu" id="isDel" size="1">
    <option value="-2" >请选择</option>
    <option value="1" <c:if test="${param['shanchu']==1}">selected</c:if>>是</option>
    <option value="0" <c:if test="${param['shanchu']==0}">selected</c:if>>否</option>
    </select>
    </label>
  <label>
    <html:button onclick="javascript:search();void 0;" property="button" value="提交"/>
     </label>
     </html:form>
     
        </div>
   <div class="fb_s_a2">注：<font color="red">&nbsp;★ 为是， ☆ 为否。</font></div>
</div>
<div class="fb_nr">
 
      <logic:present name="DirectSeedList">
	<logic:notEmpty name="DirectSeedList">
 
  	<form action="/admin/directSeed.do?method=delete&page=${curPage}&pageSize=${pageSize}" name="theForm1" method="post" id="theForm1">
  	
  	<input type="hidden" id="toPageLinkstr"  value="/admin/directSeed.do?method=dealWithAll&page=${curPage}&pageSize=${pageSize}&bktitle=${title}&bkcontent=${content}&bkkeyword=${keyword}&bkshanchu=${param['shanchu']}&bkdirectSeedNameid=${param['directSeedNameid']}&bkdirectSeedClassid=${param['directSeedClassid']}&bktitleStr=${param['titleStr']}&bkyear=${param['year']}" />
  <table width="100%" border="1" cellpadding="0"
			cellspacing="0" style="font-size:12px">
  <c:if test="${param['shanchu'] !=  '1'}">
    <tr class="lb">
      <td width="6%" bgcolor="#FEDFC0">选择</td>
      <td width="20%" bgcolor="#FEDFC0">[直播名]栏目名</td>
      <td width="10%" bgcolor="#FEDFC0">标题</td>
      <td width="10%" bgcolor="#FEDFC0">作者</td>
      <td width="10%" bgcolor="#FEDFC0">发布人</td>
      <td width="5%" bgcolor="#FEDFC0">推荐</td>
      <td width="7%" bgcolor="#FEDFC0">头条</td>
      <td width="6%" bgcolor="#FEDFC0">修改</td>
      <td width="14%" bgcolor="#FEDFC0">整理时间</td>
    </tr>

	<logic:iterate id="list" name="DirectSeedList">
      <tr class="lb1">
      
        <td align="center">
          <input type="checkbox" id="checkboxparam" name="checkboxparam" value="${list.id}" />
        </label></td>
        
        <td>
        <span>[ID:${list.id}
        <c:if test="${list.directSeedName!=null}">
        <c:set var="qinameStr" value="${list.directSeedName.qiname}"></c:set>
        ${fn:substring(qinameStr,0,4)}
        </c:if>]</span>
        <c:if test="${list.directSeedClass!=null}">
        ${list.directSeedClass.lanmuname}</c:if>
        </td>

 
        <td align="center">
        <c:set var="titlestr3" value="${list.title}"></c:set>
        <a title="${list.title}">${fn:substring(titlestr3,0,5)}</a></td>
          
        <td align="center">
          ${list.writer}</td>
          
        <td align="center">
          ${list.username}</td>
          
        <td align="center">
        <c:if test="${list.iscommend==1}">★</c:if>
        <c:if test="${list.iscommend==0}">☆</c:if>
       </td>
       <td align="center">
        <c:if test="${list.toptitle==1}">★</c:if>
        <c:if test="${list.toptitle==0}">☆</c:if>
        </td>
        <td align="center"><html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=toupdate&id=${list.id }&page=${curPage}&pageSize=${pageSize}&bktitle=${title}&bkcontent=${content}&bkkeyword=${keyword}&bkshanchu=${param['shanchu']}&bkdirectSeedNameid=${param['directSeedNameid']}&bkdirectSeedClassid=${param['directSeedClassid']}&bktitleStr=${param['titleStr']}&bkyear=${param['year']}'); void 0;"><img src="images/edititem.gif" border=0 /></html:link></td>
        <td align="center">
        <c:set var="createDatetime" value="${list.datetime}"></c:set>
          ${fn:substring(createDatetime,0,19)}</td>
      </tr>
      
      	</logic:iterate>

		<tr>
		</c:if>
  <c:if test="${param['shanchu'] ==  '1'}">
    <tr class="lb">
      <td width="6%">选择</td>
      <td width="20%">[直播名]栏目名</td>
      <td width="10%">直播标题</td>
      <td width="14%">整理时间</td>
    </tr>

	<logic:iterate id="list" name="DirectSeedList">
      <tr class="lb1">
      
        <td align="center"><label>
          <input type="checkbox" id="checkboxparam" name="checkboxparam" value="${list.id}" />
        </label></td>
        
        <td>
        <span>[ID号:${list.id}
        <c:if test="${list.directSeedName!=null}">
        <c:set var="qinameStr" value="${list.directSeedName.qiname}" />
        ${fn:substring(qinameStr,0,4)}</c:if>]</span>
        <c:if test="${list.directSeedClass!=null}">
        ${list.directSeedClass.lanmuname}</c:if>
        </td>

 
        <td align="center">
        <c:set var="titlestr3" value="${list.title}"></c:set>
       <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=toupdate&id=${list.id }&page=${curPage}&pageSize=${pageSize}&bktitle=${title}&bkcontent=${content}&bkkeyword=${keyword}&bkshanchu=${param['shanchu']}&bkdirectSeedNameid=${param['directSeedNameid']}&bkmagazineClassid=${param['directSeedClassid']}&bktitleStr=${param['titleStr']}&bkyear=${param['year']}'); void 0;">
        ${fn:substring(titlestr3,0,5)}</html:link></td>
     
           <td align="center">
        <c:set var="createDatetime" value="${list.datetime}"></c:set>
          ${fn:substring(createDatetime,0,19)}</td>
      </tr>
      
      	</logic:iterate>
		</c:if>
		<tr>
	<td colspan=9>
	<table width="100%" border="1" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td height="4"></td>
			</tr>
			<logic:present name="DirectSeedList">
				<tr>
					<td>
						<html:button onclick="selectAll(1);" property="button" value="全选" />
						&nbsp;
						<html:button onclick="selectAll(2);" property="button" value="反选" />
						&nbsp;
						<html:button onclick="selectAll(3);" property="button" value="不选" />
						&nbsp;		
				<c:if test="${param['shanchu'] !=  '1'}">
				<html:button onclick="javascript:checkboxIsSelected2(1);void 0" property="button" value="推荐"/>
				<html:button onclick="javascript:checkboxIsSelected2(2);void 0" property="button" value="取消推荐"/>
				<html:button onclick="javascript:checkboxIsSelected2(8);void 0" property="button" value="头条"/>
				<html:button onclick="javascript:checkboxIsSelected2(9);void 0" property="button" value="取消头条"/>
				
				<html:button onclick="javascript:checkboxIsSelected2(5);void 0" property="button" value="放入回收站"/>
                </c:if>
                <c:if test="${param['shanchu'] == '1'}">
				<html:button onclick="javascript:checkboxIsSelected2(6);void 0" property="button" value="恢复"/>
				<html:button onclick="javascript:checkboxIsSelected2(7);void 0" property="button" value="彻底删除"/>
				 </c:if>
					</td>
				</tr>
			</logic:present>
		</table>
	</td>
	</tr>
	
		
	<tr>
	<td colspan=12>
	      <table width="100%" border="0" cellspacing="1" style="font-size:12px">
            <tr>
               <td colspan="8">
              
<%--                       有 <span class="red1">${recordNum}</span>条记录。当前是第${curPage}页,总共${allPage}页&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;--%>
<%--                      <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&page=${1}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >首页</html:link>--%>
<%--                      <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${page}&pageSize=${pageSize}&doit=backPage&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >上一页</html:link>--%>
<%--                      --%>
<%--                      --%>
<%--                        页码循环 --%>
<%--          <c:forEach begin="${1}" end="${allPage}" var="page" varStatus="pageCount">--%>
<%--                 <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >--%>
<%--                    --%>
<%--                    <c:if test="${curPage==page}">--%>
<%--		                  <font color="red" class="one"><c:out value="${pageCount.index}"></c:out></font>--%>
<%--		            </c:if>--%>
<%--		            <c:if test="${curPage!=page}">--%>
<%--		              <c:out value="${pageCount.index}"></c:out>--%>
<%--		            </c:if>--%>
<%--		                 --%>
<%--		                 --%>
<%--                  </html:link>--%>
<%--          </c:forEach>              --%>
<%--   --%>
<%--                      <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${page}&pageSize=${pageSize}&doit=nextPage&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >下一页</html:link>--%>
<%--               <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&page=${allPage}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >尾页</html:link>       --%>
<%--               --%>

有 <span class="red1">${recordNum}</span>条。当前第${curPage}页,共${allPage}页
       	<logic:notEmpty name="recordNum">
	<c:if test="${recordNum>0}">
		<c:if test="${curPage>1}">
		     <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${page}&pageSize=${pageSize}&doit=backPage&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >上一页</html:link>
		</c:if>
		<%--  页码循环 --%>
		<c:if test="${(curPage>=1)&&(curPage<=7)&&(allPage<8)}">
		<c:forEach begin="${1}" end="${allPage}" var="page" step="1" varStatus="pageCount">
			<b>&nbsp;
			<html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >
				[<c:if test="${curPage==page}">
					<font color="red" class="one">
						<c:out value="${pageCount.index}"></c:out> 
					</font>
				</c:if>
				<c:if test="${curPage!=page}">
						<c:out value="${pageCount.index}"></c:out>
				</c:if>]
			</html:link>
			</b>
		</c:forEach>
		</c:if>
		<c:if test="${(curPage>=1)&&(curPage<=7)&&(allPage>8)}">
		<c:forEach begin="${1}" end="${8}" var="page" step="1" varStatus="pageCount">
			<b>&nbsp;
			<html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >
				[<c:if test="${curPage==page}">
					<font color="red" class="one">
						<c:out value="${pageCount.index}"></c:out> 
					</font>
				</c:if>
				<c:if test="${curPage!=page}">
						<c:out value="${pageCount.index}"></c:out>
				</c:if>]
			</html:link>
			</b>
		</c:forEach>
		</c:if>
		<c:if test="${curPage>7&&(allPage>(curPage+4))}">
		 <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&page=${1}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >1</html:link>....
		<c:forEach begin="${(curPage-3)}" end="${(curPage+4)}" var="page" step="1" varStatus="pageCount">
			<b>&nbsp;
			<html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >
				[<c:if test="${curPage==page}">
					<font color="red" class="one">
						<c:out value="${pageCount.index}"></c:out> 
					</font>
				</c:if>
				<c:if test="${curPage!=page}">
						<c:out value="${pageCount.index}"></c:out>
				</c:if>]
			</html:link>
			</b>
		</c:forEach>
		</c:if>
		<c:if test="${curPage>7&&(allPage<=(curPage+4))}">
         <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&page=${1}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >1</html:link>....
		<c:forEach begin="${(curPage-3)}" end="${allPage}" var="page" step="1" varStatus="pageCount">
			<b>&nbsp;
			<html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${pageCount.index}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >
				[<c:if test="${curPage==page}">
					<font color="red" class="one">
						<c:out value="${pageCount.index}"></c:out> 
					</font>
				</c:if>
				<c:if test="${curPage!=page}">
						<c:out value="${pageCount.index}"></c:out>
				</c:if>]
			</html:link>
			</b>
		</c:forEach>
		</c:if>

			<c:if test="${curPage<allPage}">
			<html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&curPage=${curPage}&backPage=${backPage}&nextPage=${nextPage}&page=${page}&pageSize=${pageSize}&doit=nextPage&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >下一页</html:link>
			</c:if>
            <c:if test="${(allPage>1)&&(curPage<allPage)}">
              <html:link href="javascript:window.location=encodeURI('/admin/directSeed.do?method=list&page=${allPage}&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}'); void 0;" >尾页</html:link>       
			</c:if>
	</c:if>
	</logic:notEmpty>      





               
                到
                 <form id="searchForm123" name="searchForm123">
                 	<input type="hidden" id="toPageLinkpage"  value="/admin/directSeed.do?method=list&pageSize=${pageSize}&title=${title}&content=${content}&keyword=${keyword}&shanchu=${param['shanchu']}&directSeedNameid=${param['directSeedNameid']}&directSeedClassid=${param['directSeedClassid']}&titleStr=${param['titleStr']}&year=${param['year']}" />
               	  <input id="toPage"  name="toPage" type="text" size="3"/>
    页&nbsp;
    
      <input type="button"  value=" " style="background-image: url('/admin/images/ck.gif');border:0px;width:58px;"  title="查看"  onclick="return topage('toPage');"/>
    
    
     </form>    
               </td>
                              
                              
            </tr>
           </table>
	</td>
	</tr>
    </table>
    
    </form>
    
    	</logic:notEmpty>
	</logic:present>
	      <logic:present name="DirectSeedList">
<logic:empty name="DirectSeedList">
<font color="red">对不起！！！，没有搜索到你想要的结果！！！</font>
</logic:empty>
	</logic:present>
    

   <h1><img src="image/qqddc_shop1.gif" width="720" height="8" /></h1>
</div>
	

  </body>
</html:html>










